/** 
 * @author seeker910
 * @description redjs javascript sdk :cms-api.js
 * @description 网站相关api 接口
 */ 

var cmsHost = {
    text:'GLOBAL C端服务',
    name:'global',
    url:'http://global.sellerpartner.cn/', 
    //url:'https://localhost:5001/',
    index:'dev/index',
    isLoaded:false,
    useSSL:false,
    controllers:[ 
        {name:'order',path:'order',GetDescription:'GetDes'}, 
        {name:'goods',path:'goods',GetDescription:'GetDes'}, 
    ]
};
var apiConfig = [
    {
        "group": "global.share",
        "errorHandler":  Rsd.app.httpRequestErrorHandler,
        "failureHandler": "failureHandler",
        "successHandler": null,
        "api": [ 
            {
                "name": "upload",
                "failureHandler": "uploadFailHandler",
                "successHandler": "uploadSccessHandler",
                "method": "POST",
                //timeout:10000
            }

        ]
    },

];
/**
* 加载api services
*/
Rsd.loadServices(cmsHost,[],function(data,state){
    if(state=='serviceLoaded')
    rsd.app.fire('global_api',data);
});
//缓存数据
Rsd.cms = Rsd.cms||{};
